package sk.uniza.fri.cerviix.server.network.messages.server;

import java.io.IOException;

import sk.uniza.fri.cerviix.server.network.MessageType;
import sk.uniza.fri.cerviix.server.network.ServerMessage;

public class PlayerRemoveMessage extends ServerMessage
{
	private int playerId;
	
	public PlayerRemoveMessage(int playerId)
	{
		this.playerId = playerId;
	}

	@Override
	public void send() throws IOException
	{
		setHeader(MessageType.PLAYER_REMOVE);
		
		stream.writeInt(playerId);
	}
}
